//
//  AboutUsViewController.m
//  Daily Watch
//
//  Created by 安静的美男子 on 14-10-15.
//  Copyright (c) 2014年 安静的美男子. All rights reserved.
//

#import "AboutUsViewController.h"

@interface AboutUsViewController ()

@end

@implementation AboutUsViewController

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        // Custom initialization
        self.title = @"关于我们";
        
    }
    return self;
}

- (void)viewDidLoad
{
    [super viewDidLoad];
    [self CreatButton];
    UILabel *name = [[UILabel alloc]initWithFrame:CGRectMake(0, 100, 320, 100)];
    UILabel *name1 = [[UILabel alloc]initWithFrame:CGRectMake(0, 200, 320, 100)];
    UILabel *name2 = [[UILabel alloc]initWithFrame:CGRectMake(0, 300, 320, 100)];
    [name setText:@"薛继苗"];
    [name1 setText:@"陈东旭"];
    [name2 setText:@"杨光"];
    name.textAlignment =NSTextAlignmentCenter;
    name1.textAlignment = NSTextAlignmentCenter;
    name2.textAlignment = NSTextAlignmentCenter;
    name.textColor = [UIColor whiteColor];
    name1.textColor = [UIColor orangeColor];
    name2.textColor = [UIColor cyanColor];
    [self.view addSubview:name];
    [self.view addSubview:name1];
    [self.view addSubview:name2];
    // Do any additional setup after loading the view.
}
-(void)CreatButton
{
    [_todayButton addTarget:self action:@selector(TodayButtonAction) forControlEvents:UIControlEventTouchUpInside];
    [_NewsButton addTarget:self action:@selector(NewsButtonAction) forControlEvents:UIControlEventTouchUpInside];
    [_brandsButton addTarget:self action:@selector(brandsButtonAction) forControlEvents:UIControlEventTouchUpInside];
    [_videoButton addTarget:self action:@selector(videoButtonAction) forControlEvents:UIControlEventTouchUpInside];
    [_settingButton addTarget:self action:@selector(settingButtonAction) forControlEvents:UIControlEventTouchUpInside];
//    [_emptyButton addTarget:self action:@selector(emptyButtonAction) forControlEvents:UIControlEventTouchUpInside];
}
-(void)TodayButtonAction
{
    TodayViewController *today = [[TodayViewController alloc]init];
    [self.navigationController pushViewController:today animated:YES];
    [today release];
    
}
-(void)NewsButtonAction
{
    NewsViewController *new = [[NewsViewController alloc]init];
    [self.navigationController pushViewController:new animated:YES];
    [new release];
}
-(void)brandsButtonAction
{
    BrandsViewController *bra = [[BrandsViewController alloc]init];
    [self.navigationController pushViewController:bra animated:YES];
    [bra release];
}
-(void)videoButtonAction
{
    VideoViewController *video = [[VideoViewController alloc]init];
    [self.navigationController pushViewController:video animated:YES];
    [video release];
}
-(void)emptyButtonAction
{
    AboutUsViewController *about = [[AboutUsViewController alloc]init];
    [self.navigationController pushViewController:about animated:YES];
    [about release];
}
-(void)settingButtonAction
{
    settingViewController *setting = [[settingViewController alloc]init];
    [self.navigationController pushViewController:setting animated:YES];
    [setting release];
}
- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender
{
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
